package com.ruoyi.ies.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ies.mapper.EmployeeScheduleMapper;
import com.ruoyi.ies.domain.EmployeeSchedule;
import com.ruoyi.ies.service.IEmployeeScheduleService;

/**
 * 区域Service业务层处理
 * 
 * @author July
 * @date 2023-06-09
 */
@Service
public class EmployeeScheduleServiceImpl implements IEmployeeScheduleService 
{
    @Autowired
    private EmployeeScheduleMapper employeeScheduleMapper;

    /**
     * 查询区域
     * 
     * @param id 区域主键
     * @return 区域
     */
    @Override
    public EmployeeSchedule selectEmployeeScheduleById(Long id)
    {
        return employeeScheduleMapper.selectEmployeeScheduleById(id);
    }

    /**
     * 查询区域列表
     * 
     * @param employeeSchedule 区域
     * @return 区域
     */
    @Override
    public List<EmployeeSchedule> selectEmployeeScheduleList(EmployeeSchedule employeeSchedule)
    {
        return employeeScheduleMapper.selectEmployeeScheduleList(employeeSchedule);
    }

    /**
     * 新增区域
     * 
     * @param employeeSchedule 区域
     * @return 结果
     */
    @Override
    public int insertEmployeeSchedule(EmployeeSchedule employeeSchedule)
    {
        return employeeScheduleMapper.insertEmployeeSchedule(employeeSchedule);
    }

    /**
     * 修改区域
     * 
     * @param employeeSchedule 区域
     * @return 结果
     */
    @Override
    public int updateEmployeeSchedule(EmployeeSchedule employeeSchedule)
    {
        return employeeScheduleMapper.updateEmployeeSchedule(employeeSchedule);
    }

    /**
     * 批量删除区域
     * 
     * @param ids 需要删除的区域主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeScheduleByIds(Long[] ids)
    {
        return employeeScheduleMapper.deleteEmployeeScheduleByIds(ids);
    }

    /**
     * 删除区域信息
     * 
     * @param id 区域主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeScheduleById(Long id)
    {
        return employeeScheduleMapper.deleteEmployeeScheduleById(id);
    }
}
